package com.homevip.util.system;

import com.homevip.core.util.Global;

/**
 * 全局参数
 *
 */
public final class Const {

	/**保存到session中的随机图片变量名*/
	public static final String SESSION_KEY_RAND = "_rcode";

	/**保存到session中的后台用户变量名*/
	public static final String SESSION_KEY_USER = "_user";
	/**保存到session中的后台用户菜单变量名*/
	public static final String SESSION_KEY_USER_MENU = "_user_menu";

	/**保存到session中的前台用户变量名*/
	public static final String SESSION_KEY_MEMBER = "_member";
	
	/**文件上传相关配置**/
	public final static String UPLOAD_URL_ROOT = Global.WebPath + "/uploads/";
	public final static String UPLOAD_URL_TMP = UPLOAD_URL_ROOT + "tmp/";
	
	public final static String UPLOAD_FLODER_ROOT = Global.FilePath;
	public final static String UPLOAD_FLODER_TMP = UPLOAD_FLODER_ROOT + "tmp/";
	
	/**用于与密码结合MD5混淆*/
	public static final String MD5_MIX = "jw134#%pqNLVfn";
	
	/**后台管理员默认用户名密码*/
	public static final String ADMINUSER_NAME = "admin";
	public static final String ADMINUSER_PWD = "123456";
	
	/**全局变量中的变量名称*/
	public static final String CONTEXT_PATH = "path";
	public static final String CONTEXT_PLATFORMPATH = "platform";
	public static final String CONTEXT_API = "api";
	public static final String CONTEXT_WEIXINPATH = "weixin";
	public static final String CONTEXT_UPLOADPATH = "CONTEXT_UPLOADPATH";
	public static final String CONTEXT_WEBPATH = "CONTEXT_WEBPATH";
	public static final String CONTEXT_COMMARRAY = "commArray";
	public static final String CONTEXT_WORDER = "worderEum";
	
	/**默认显示条数*/
	public static final int DEFINE_PAGE = 10;
	
	/**静态文件*/
	public static final String[] RESOURCES =  new String[] { "jpg", "png", "gif", "css","js", "swf", "ttf", "woff","mp4","webm" };
	
	/**编辑地址前缀标识*/
	public static final String[] FLAG_EDIT =  new String[] { "ajax_"};
	
	public static final String UTF8 = "utf-8";
}
